//
// Created by Yang2 on 2022/5/17.
//

#ifndef ORIGIN_TEXTUREMAPSAMPLE_H
#define ORIGIN_TEXTUREMAPSAMPLE_H

#include "../GLSampleBase.h"

class TextureMapSample : public GLSampleBase {
public:
    TextureMapSample();

    virtual ~TextureMapSample();

    virtual void LoadImage(NativeImage *pImage);

    void Draw(int screenW, int screenH);

    void Init();

    virtual void Destroy();

private:
    GLuint m_TextureId;
    GLint m_SamplerLoc;
    NativeImage m_RenderImage;
};


#endif //ORIGIN_TEXTUREMAPSAMPLE_H
